import { touch } from '../../mixins/touch'

Component({

    behaviors: [ touch ],

    properties: {},

    data: {},

    methods: {
        onTouchStart (e) {
            console.log(e, 'TouchStart')
            // this.touchStart(e)
        },
        // 阻止事件冒泡
        onCatchTouchMove (e) {
            console.log(e, 'CatchTouchMove')
        },
        // 捕获阶段触发但并不阻止事件继续传播
        onCaptureTouchMove (e) {
            console.log(e, 'CaptureTouchMove')
        },

        onTouchEnd (e) {
            console.log(e, 'TouchEnd')
        },

        onTouchCancel (e) {
            console.log(e, 'TouchCancel')
        }
    }
})
